package com.kgis.fm.business.event
{
	import com.kgis.mvc.CommandCompletionEvent;
	
	import flash.events.Event;
	
	[Response(name="{RETURN_ID}", type="com.kgis.mvc.CommandCompletionEvent")]
	public class ConnectivityEvent extends Event
	{
		public static const REQUEST_ID:String="ConnectivityEvent_Request";
		public static const RETURN_ID:String="ConnectivityEvent_Return";
		
		public static const TYPE_FINDFEATURECONNECTIVITYLIST:String="findFeatureConnectivityList";
		
		private var _actionType:String;
		private var _spec:Object = null;
		
		public function ConnectivityEvent(spec:Object, actionType:String, type:String = null)
		{
			var typeId:String = type;
			if (type == null) {
				typeId = REQUEST_ID;
			}
			super(typeId);
			_spec = spec;
			_actionType = actionType;
		}
		
		public override function clone():Event {
			var event:ConnectivityEvent = new ConnectivityEvent(spec, actionType, type);
			return event;
		}
		
		public function get spec():Object {
			return _spec;
		}
		
		public function get actionType():String {
			return _actionType;
		}
	}
}